package compoundDB.io;

import static org.junit.Assert.*;

import java.io.FileNotFoundException;
import java.io.IOException;

import junit.framework.TestCase;
import compoundDB.io.IOController;

import org.junit.Test;

import compoundDB.core.Compound;

public class TestMDLReader extends TestCase {

	@Test
	public void testOpen() throws FileNotFoundException {
		MoleculeReader m = IOController.getReader(".mdl");
		m.open("Known_1.mol2.txt");
		m.close();
	}

	@Test
	public void testReadCompound() throws IOException {
		MoleculeReader m = IOController.getReader(".mdl");
		m.open("Known_1.mol2.txt");
		Compound c = m.readCompound();
		m.close();
	}

}
